package edu.gatech.bsbmule.model;



// manav, writing this for use in store class
// the int values of muletype are same as those in Store;
/**
 * This class represents the Mule object once it is bought from the store and assigned to a Tile
 * 
 * @author BSB
 * 
 */
public class Mule {
	int muleType = 0;
	
	String type = "";
	
	public static final int MULE_FOOD = 4;
	public static final int MULE_ENERGY = 5;
	public static final int MULE_SMITHORE = 6;

	/**
	 * Creates the mule with type 'i'
	 * @param i
	 */
	public Mule(int i){
		setMuleType(i);
	}
	
	/**
	 * Sets the type of mule
	 * @param j
	 */
	public void setMuleType( int j ){
		muleType = j;
		if (j == 4)
			type = "food";
		if (j==5)
			type = "energy";
		if (j==6)
			type = "smithore";
	}
	/**
	 * Prints the type of mule to the console and returns
	 * the type as an int
	 * @return
	 */
    public int getMuleType(){
    	System.out.println(type);
    	return muleType;
    }
}
